import Vue from 'vue'
import routes from './routes'
import VueResource from 'vue-resource'
import VueRouter from 'vue-router'
import App from "./app.vue"

Vue.use(VueRouter);
Vue.use(VueResource);
Vue.http.options.root = 'blog';

const app = new Vue({
    router:  new VueRouter({
        routes // （缩写）相当于 routes: routes
    }),
    render: h => h(App)
}).$mount('#app');